package cc.lzmsh.service;

import cc.lzmsh.domain.entity.Article;
import cc.lzmsh.domain.result.Result;
import cc.lzmsh.domain.vo.ArticleDetailVo;
import cc.lzmsh.domain.vo.ArticleListVo;
import cc.lzmsh.domain.vo.HotArticleVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 文章表(Article)表服务接口
 *
 * @author msh
 * @since 2024-09-13 15:07:43
 */
public interface ArticleService extends IService<Article> {

    Result<List<HotArticleVo>> hotArticleList();


    List<ArticleListVo> getArticleList(Integer pageNum, Integer pageSize, Long categoryId);

    ArticleDetailVo getArticleDetail(Long id);

    Result updateViewCount(Long id);
}

